package com.woniu.service;

import com.woniu.entity.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductService {
    public List<Product> selectAllProduct();
    public Product selectProductById(int id);

    public void UpdateProductStock(Integer pid,int stock);

    public List<Product> selectProductByUid(int merchant_id);

    public void insertProduct(Product product);

    public void updateProductPrice(Integer pid,double price);

    public void deleteProductById(int pid);

    public void deleteProductByMerchantId(int merchant_id);
    public List<Product> selectProductByName(String pname);
    public Product selectProductMidName( Integer merchant_id,String pname);

}
